//
//  SensorManager.h
//  CameraDemo
//
//  Created by apple on 2017/3/9.
//  Copyright © 2017年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreMotion/CoreMotion.h>
#import <CoreLocation/CoreLocation.h>
@interface SensorManager : NSObject

+ (instancetype)shared;
- (void)startGyroscope;

- (void)startSensor;
- (void)stopSensor;

@property (nonatomic, copy) void (^updateDeviceMotionBlock)(CMDeviceMotion *data);
@property (nonatomic, copy) void (^ didiUpdateHeadingBlock)(CLLocationDirection theHeading);
@end
